# words/urls.py
from django.urls import path
from .views import WordDetailAPIView, WordSynonymAPIView, PronunciationView

urlpatterns = [
    path('api/word/<str:word>/', WordDetailAPIView.as_view(), name='word-detail'),
    path('api/word/<str:word>/synonyms/', WordSynonymAPIView.as_view(), name='word-synonyms'),
    path('api/pronunciation/<str:word>/', PronunciationView.as_view(), name='pronunciation'),
    #path('api/translate/', TranslateView.as_view(), name='translate'),
]
